package com.awn.weidian;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
public class Application {

    @Bean
    public Object testBean(PlatformTransactionManager platformTransactionManager){
        return new Object();
    }

    /**
     * boot启动文件
     * @param args
     */
    public static void main(String[] args){
        SpringApplication.run(Application.class,args);
    }


}
